
#include <iostream>
#include "string.h"
#include "TcpClient.h"

int main(int argc, char *argv[])
{
	std::string sendData = "你好，TCP服务端，我是客户端!\n";
	XTcpClient *sock = new XTcpClient();
	bool c = sock->Connect("127.0.0.1", "8888");
	if (!c)
	{
		return 0;
	};
	sock->Send(sendData);

	char *rev = sock->Receive(255);
	printf(rev);
	return 0;
}